home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps2_0_HDR_imposter.psh < prev    next >
Encoding:
Text File  |  2006-04-29  |  1.0 KB  |  48 lines

  1. //
  2. // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
  3. //
  4. //   fxc /T ps_2_0 /DCGC=0 /Fc ..\..\WorkDir\Shaders\ps\ps2_0_HDR_imposter.psh
  5. //    ps2_0_HDR_imposter.cg
  6. //
  7. //
  8. // Parameters:
  9. //
  10. //   float4 $AmbientEmissive;
  11. //   float4 $Diffuse;
  12. //   float4 $LightSrcIntencity;
  13. //   sampler2D $baseMap;
  14. //
  15. //
  16. // Registers:
  17. //
  18. //   Name               Reg   Size
  19. //   ------------------ ----- ----
  20. //   $AmbientEmissive   c0       1
  21. //   $Diffuse           c1       1
  22. //   $LightSrcIntencity c2       1
  23. //   $baseMap           s0       1
  24. //
  25.  
  26.     ps_2_0
  27.     def c3, 0, 0.0199999996, 65504, 0
  28.     dcl t0.xy
  29.     dcl t1
  30.     dcl t3
  31.     dcl t4.x
  32.     dcl_2d s0
  33.     texld r1, t0, s0
  34.     mov r0, t1
  35.     dp4 r2.w, r0, t3
  36.     max r0.w, r2.w, c3.x
  37.     mul r0.xyz, r0.w, c1
  38.     mul r0.xyz, r0, c2
  39.     mul r2.xyz, t4.x, c0
  40.     mov r3.z, c3.y
  41.     mad r2.xyz, r2, c2, r3.z
  42.     mad r0.xyz, r0, t4.x, r2
  43.     mul r1.xyz, r1, r0
  44.     min r0, r1, c3.z
  45.     mov oC0, r0
  46.  
  47. // approximately 13 instruction slots used (1 texture, 12 arithmetic)
  48.